﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Services;
using LibFriesland_Campina_CRM;

namespace WebServiceFriesland_Campina_CRM
{
    /// <summary>
    /// Summary description for FCNaShopWS
    /// </summary>
    [WebService(Namespace = "http://tempuri.org/")]
    [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
    [System.ComponentModel.ToolboxItem(false)]
    // To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line. 
    // [System.Web.Script.Services.ScriptService]
    public class FCNaShopWS : System.Web.Services.WebService
    {
        [WebMethod]
        //Lay danh sach cac ca lam viec cua tat ca cac NA
        public List<BizNaShop> getAll()
        {
            return BizNaShop.getAll();
        }

        [WebMethod]
        //Lay danh sach ca lam viec cua NA tai Shop
        public List<BizNaShop> getShiftbyNA(string pNa_charid)
        {
            return BizNaShop.getShiftbyNA(pNa_charid);
        }

        [WebMethod]
        //Lay danh sach Shop ma NA lam viec
        public List<BizShop> getShopbyNA(string pNa_charid)
        {
            return BizNaShop.getShopbyNA(pNa_charid);
        }

        [WebMethod]
        //Lay danh sach Shift cua NA lam viec tai Shop
        public List<BizShift> getShiftbyNAShop(string pBy_na, string pBy_shop)
        {
            return BizNaShop.getShiftbyNAShop(pBy_na, pBy_shop);
        }
    }
}
